/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.service.core.impl;

import com.blandware.atleap.model.core.Localizable;
import com.blandware.atleap.persistence.core.LocalizableDAO;
import com.blandware.atleap.persistence.core.LookupDAO;
import com.blandware.atleap.service.core.LookupManager;

import java.util.List;


/**
 * <p>Implementation of LookupManager interface.
 * </p>
 * <p><a href="LookupManagerImpl.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @author Roman Puchkovskiy <a href="mailto:roman.puchkovskiy@blandware.com">
 *         &lt;roman.puchkovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.24 $ $Date: 2006/08/03 10:07:42 $
 */
public class LookupManagerImpl extends BaseManagerImpl implements LookupManager {
	//~ Instance fields ========================================================

	/**
	 * Lookup DAO
	 */
	protected LookupDAO lookupDAO;
	/**
	 * Localizable DAO
	 */
	protected LocalizableDAO localizableDAO;

	//~ Methods ================================================================

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#setLookupDAO(com.blandware.atleap.persistence.core.LookupDAO)
	 */
	public void setLookupDAO(LookupDAO dao) {
		this.lookupDAO = dao;
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#setLocalizableDAO(com.blandware.atleap.persistence.core.LocalizableDAO) 
	 */
	public void setLocalizableDAO(LocalizableDAO localizableDAO) {
		this.localizableDAO = localizableDAO;
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRoleTitles()
	 */
	public List listRoleTitles() {
		return lookupDAO.listRoleTitles();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRoles()
	 */
	public List listRoles() {
		return lookupDAO.listRoles();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToLinkableItems()
	 */
	public List listRolesAssignedToLinkableItems() {
		return lookupDAO.listRolesAssignedToLinkableItems();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToContentPages()
	 */
	public List listRolesAssignedToContentPages() {
		return lookupDAO.listRolesAssignedToContentPages();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToContentResources()
	 */
	public List listRolesAssignedToContentResources() {
		return lookupDAO.listRolesAssignedToContentResources();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToDocuments()
	 */
	public List listRolesAssignedToDocuments() {
		return lookupDAO.listRolesAssignedToDocuments();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToFiles()
	 */
	public List listRolesAssignedToFiles() {
		return lookupDAO.listRolesAssignedToFiles();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToImages()
	 */
	public List listRolesAssignedToImages() {
		return lookupDAO.listRolesAssignedToImages();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listFreeRolesAssignedToUsers() ()
	 */
	public List listFreeRolesAssignedToUsers() {
		return lookupDAO.listFreeRolesAssignedToUsers();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToNewsItems() ()
	 */
	public List listRolesAssignedToNewsItems() {
		return lookupDAO.listRolesAssignedToNewsItems();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listRolesAssignedToForums()
	 */
	public List listRolesAssignedToForums() {
		return lookupDAO.listRolesAssignedToForums();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listGroups() ()
	 */
	public List listGroups() {
		return lookupDAO.listGroups();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listLayoutNames()
	 */
	public List listLayoutNames() {
		return lookupDAO.listLayoutNames();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listLayouts()
	 */
	public List listLayouts() {
		return lookupDAO.listLayouts();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listContentResourceTypes()
	 */
	public List listContentResourceTypes() {
		return lookupDAO.listContentResourceTypes();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#listContentResourceMimeTypes()
	 */
	public List listContentResourceMimeTypes() {
		return lookupDAO.listContentResourceMimeTypes();
	}

	/**
	 * @see com.blandware.atleap.service.core.LookupManager#retrieveLocalizable(Long)
	 */
	public Localizable retrieveLocalizable(Long localizableId) {
		return localizableDAO.retrieveLocalizable(localizableId);
	}

    /**
     * @see com.blandware.atleap.service.core.LookupManager#listLinkableItemsClassNames()
     */
    public List listLinkableItemsClassNames() {
        return lookupDAO.listLinkableItemsClassNames();
    }
}
